package com.situ.day8homework4;

import java.io.ObjectInputStream.GetField;

import com.situ.day3.Students;

public class Oop {
	public static void main(String[] args) {
		Xuesheng xuesheng = new Xuesheng();
		xuesheng.setName("张三");
		xuesheng.setXingbie("男");
		xuesheng.setAge(20);
		xuesheng.setGuoji("中国");
		xuesheng.setXuexiao("人民大学");
		xuesheng.setXuehao("12345");
		System.out.println(xuesheng);
		xuesheng.gongzuo();
		xuesheng.shuijiao();
		xuesheng.shifan();
		System.out.println();
		
		Gongren gongren = new Gongren();
		gongren.setName("李四");
		gongren.setXingbie("男");
		gongren.setAge(22);
		gongren.setGuoji("中国");
		gongren.setDanwei("中国航天");
		gongren.setGongleng("5");
		System.out.println(gongren);
		gongren.shifan();
		gongren.shuijiao();
		gongren.gongzuo();
		System.out.println();
		
		Xueshengganbu xueshengganbu = new Xueshengganbu();
		xueshengganbu.setName("王五");
		xueshengganbu.setXingbie("女");
		xueshengganbu.setAge(20);
		xueshengganbu.setGuoji("中国");
		xueshengganbu.setXuexiao("人民大学");
		xueshengganbu.setXuehao("54321");
		xueshengganbu.setZhiwu("学生会主席");
		System.out.println(xueshengganbu);
		xueshengganbu.gongzuo();
		xueshengganbu.shuijiao();
		xueshengganbu.shifan();
		xueshengganbu.kaihui();
		System.out.println();
		
		
		
		
		
		
		
		
	
		
		
	}
}
